package com.css.fxfzypg.modules.baseData.repository;

import com.alibaba.fastjson.JSONObject;
import com.css.fxfzypg.modules.baseData.entity.VillageTownCondition;
import com.css.fxfzypg.modules.baseData.queryParams.VillageTownConditionQueryParams;

import java.sql.Timestamp;

public interface VillageTownConditionRepository {
    JSONObject getAllVillageTownCondition(VillageTownConditionQueryParams queryParams, int curPage, int pageSize);

    int getVillageTownConditionBydivision(String provinceId, String cityId, String prefectureId, String villageTown);

    int saveVillageTownCondition(VillageTownCondition villageTownCondition);

    VillageTownCondition getVillageTownConditionById(String id);

    void delete(String id, Timestamp timestamp, String userId);

    void update(VillageTownCondition villageTownCondition);

    VillageTownCondition getVillageCountiesCodition(String province, String city, String area, String township);

    void deleteByVillageTown(VillageTownCondition condition);

    Integer countByProvinceAndYear(String province, String taskYear);
}
